/**
 * 关于规则集合接口
 */
import request from '@/utils/request'

const api_name = '/monitor/rules'
export default {
  //创建一个规则集合
  createCollection(data) {
    return request({
      url: `${api_name}/createCollection`,
      method: 'post',
      data: data
    })
  },
  //查询这张表的全部规则集合
  allRelusCollections(database,tableName) {
    return request({
      url: `${api_name}/queryAllRulesCollection/${database}/${tableName}`,
      method: 'get'
    })
  },
  //删除一个规则集合
  deleteOneCollection(collectionId) {
    return request({
      url: `${api_name}/deleteOneCollection/${collectionId}`,
      method: 'delete'
    })
  },
}
